package cn.shop.cloud.service;

import cn.shop.cloud.domain.SeckillOrder;

/**
 * @program: shop-parent
 * @ClassName ISeckillOrderService
 * @description:
 * @author: Mokio
 * @create: 2024−12-24 21:09
 * @Version 2024 2.2 ; jdk1.8.0_181
 **/
public interface ISeckillOrderService {
    /**
     * 根据用户的id  和 场次 id 判断用户是否参与过本场秒杀
     * @param id
     * @param seckillId
     * @return
     */
    public SeckillOrder findUserIdAndSeckillId(Long id, Long seckillId);


    /**
     * 创建秒杀订单
     * @param userId
     * @param seckillId
     * @param orderNo
     */
    public void createSeckillOrder(Long userId,Long seckillId,String orderNo);
}
